package pms;

import org.joda.time.DateMidnight;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

public class Alert {
	
	
	public Alert(int alertNumber, String description, DateTime requestDate,
			DateMidnight startDate, DateMidnight endDate, int employeeID,
			String employeeFirstName, String employeeLastName, int supervisorID) {
		super();
		this.alertNumber = alertNumber;
		this.description = description;
		this.requestDate = requestDate;
		this.startDate = startDate;
		this.endDate = endDate;
		this.employeeID = employeeID;
		this.employeeFirstName = employeeFirstName;
		this.employeeLastName = employeeLastName;
		this.supervisorID = supervisorID;
	}
	
	
	
	public String toString() {
		DateTimeFormatter df = DateTimeFormat.forPattern("yyyy/MM/dd");
		return employeeLastName + ", " + employeeFirstName + " - " + startDate.toString(df) + " -> " + endDate.toString(df);
	}
	
	public int alertNumber;
	public String description;
	public DateTime requestDate;
	public DateMidnight startDate;
	public DateMidnight endDate;
	public int employeeID;
	public String employeeFirstName;
	public String employeeLastName;
	public int supervisorID;
}
